import request from '@/utils/request'

// 查询用户佣金记录列表
export function listUserBrokerageRecord(query) {
  return request({
    url: '/system/userBrokerageRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户佣金记录详细
export function getUserBrokerageRecord(id) {
  return request({
    url: '/system/userBrokerageRecord/' + id,
    method: 'get'
  })
}

// 新增用户佣金记录
export function addUserBrokerageRecord(data) {
  return request({
    url: '/system/userBrokerageRecord',
    method: 'post',
    data: data
  })
}

// 修改用户佣金记录
export function updateUserBrokerageRecord(data) {
  return request({
    url: '/system/userBrokerageRecord',
    method: 'put',
    data: data
  })
}

// 删除用户佣金记录
export function delUserBrokerageRecord(id) {
  return request({
    url: '/system/userBrokerageRecord/' + id,
    method: 'delete'
  })
}
